<h1>Subcategories</h1>
<a href="<?php echo url_for('@subcategory_new') ?>">Nuevo</a>
<table border="1" cellpadding="15">
    <tr>
        <td>Descripci&oacute;n</td>
        <td>Categor&iacute;a</td>
        <td>Opciones</td>
    </tr>
<?php foreach($subcategories as $subcategory){ ?>
    <tr>
        <td><?php echo $subcategory->getDescription() ?></td>
        <td><?php echo $subcategory->getCategory()->getDescription() ?></td>
        <td>
            <a href="<?php echo url_for('@subcategory_edit?id='.$subcategory->getId()) ?>">Editar</a>
            <a href="<?php echo url_for('@subcategory_delete?id='.$subcategory->getId()) ?>" onclick="return delete_confirm()">Eliminar</a>
        </td>
    </tr>
<?php } ?>
</table>